/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

/* 通用样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 链接样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* 列表样式 */
ul, ol {
  list-style: none;
}

/* 按钮基础样式 */
.btn {
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: rgb(174, 0, 43);
  border-color: rgb(174, 0, 43);
}

.btn-primary:hover {
  background-color: rgb(255, 89, 130);
  border-color: rgb(255, 89, 130);
}

.btn-secondary {
  color: rgb(255, 89, 130);
  background-color: #ecf0f1;
  border-color: #ecf0f1;
}

.btn-secondary:hover {
  background-color: #dce1e4;
  border-color: #dce1e4;
}

/* 卡片组件样式 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* 加载状态样式 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  border-top-color: rgb(174, 0, 43);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式基础样式 */
@media (max-width: 768px) {
  .btn {
    width: 100%;
  }
}